package com.zh.freechat.common;

/**
 * 缓存相关的Key值
 *
 * @author ZH
 * @date 0:02 2021/5/14
 */
public final class CacheKeysConst {

    public static final String REDIS_KEY_ChatGroup_Hash = "group-members_hash_";
    public static final String REDIS_KEY_ChatRelId_Hash = "chatRelId_hash_";

    /**
     * redis中的key，用于判断消息是否已经发送过MQ
     */
    public static final String REDIS_MQ_SEND_KEY_PREFIX = "chatmsg_mq_send:";

    /*
     * Redis中的一些key的前缀
     */
    public static final String LOCALID_MSGID_MAP_PREFIX = "msg_local_id_map:";
    /*
     * Redis中的一些key的前缀
     */
    public static final String UID_USERNAME_HASH = "uid_2_username_hash";
    public static final String USERNAME_UID_HASH = "username_2_uid_hash";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

}
